import React from 'react'

import routes, { GetRoutes, useMyRoutes } from './routes'
import { useRoutes } from 'react-router-dom'
// import Login from './components/Login'
// import Main from './components/Main'
// import NotFound from './components/404'
// import Home from './components/Main/Home'
// import About from './components/Main/About'
export default function App() {
  /* 
    Navigate组件：
      当不管什么情况下接收了这个 Navigate组件,则路由会按照这个组件的to的地址重新执行路由跳转
  
    路径是 * 代表所有路径，先匹配非*的所有的路径 如果匹配不到，则执行*代表的路由组件
  */
  return (
    <div>
      {
        // useRoutes(routes)
        // <GetRoutes/>
        useMyRoutes()
      }
    </div>
  )
}
